<form action="<?= @route()?>" method="post" name="adminForm">
<table class="adminlist">
<thead>
 <tr>
        <th width="5">
                <?= @text('NUM'); ?>
        </th>
        <th width="20">
                <input type="checkbox" name="toggle" value="" onclick="checkAll(<?= count(@$greetings); ?>);" />
        </th>                   
        <th>
                <?= @text('Greeting' ); ?>
        </th>
</tr>
</thead>
        <tbody>
      <? $i = 0; $m = 0; ?>
      <? foreach (@$greetings as $greeting) : ?>
      <tr class="<?php echo 'row'.$m; ?>">
            <td align="center"><?= $i + 1; ?></td>
                <td align="center">
                <?= @helper('grid.id', $i, $greeting->id); ?>
                </td>
             <td>
               <a href="<?=@route('view=greeting&id='.$greeting->id)?>">
                <?= $greeting->greeting; ?>
               </a>
              </td>
                </tr>
       <? $i = $i + 1; $m = (1 - $m); ?>
      <? endforeach; ?>
</table>
<input type="hidden" name="boxchecked" value="0" />
</form>